<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" pageEncoding="utf-8" %>
<%@ page import="entity.User" %>

<jsp:useBean id="user" class="entity.User" scope="session"></jsp:useBean>

<%
	if(user.getUsername() == null){
%>
		<a href="login.jsp">请登录</a>
<%
	}else{
%>
		<div align="right">在线人数:[${onLineCount}]&nbsp;当前登录的用户名:<jsp:getProperty property="username" name="user" />&nbsp;&nbsp;<a href="LogoutServlet">注销</a></div>
<%
	}
%>